package top.xiaoqiannb.shapelessdao.procedures;

import top.xiaoqiannb.shapelessdao.item.YijingItem;
import top.xiaoqiannb.shapelessdao.ShapelessdaoMod;

import net.minecraft.world.level.LevelAccessor;
import net.minecraft.world.item.ItemStack;

public class ReadYijingProcedure {
	public static void execute(LevelAccessor world, ItemStack itemstack) {
		if (itemstack.getItem() instanceof YijingItem)
			itemstack.getOrCreateTag().putString("geckoAnim", "classicbook.model.read");
		ShapelessdaoMod.queueServerWork(50, () -> {
			itemstack.shrink(1);
		});
	}
}
